package com.newlink.building.userinfo.mvp.model

import com.newlink.building.common_base.base.BaseModel
import com.newlink.building.common_base.http.Base_RetrofitHelper
import com.newlink.building.common_base.model.bean.FeedbackRequest
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_FeedbackContract
import io.reactivex.Observable
import okhttp3.MultipartBody

class Module_UserInfo_FeedbackModel : BaseModel(), Module_UserInfo_FeedbackContract.Model {
    override fun sendFeedBack(
        token: String,
        request: FeedbackRequest,
        parts: List<MultipartBody.Part>
    ): Observable<HttpResult<Any?>> {
        return Base_RetrofitHelper.service.sendFeedback(token, parts)
    }
}